package com.woniu.outlet.dao;

import java.util.List;

import com.woniu.outlet.po.MaterialBomPo;
import com.woniu.outlet.po.MaterialBomPoExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface MaterialBomPoMapper {
    long countByExample(MaterialBomPoExample example);

    int deleteByExample(MaterialBomPoExample example);

    int deleteByPrimaryKey(Long id);

    int insert(MaterialBomPo record);

    int insertSelective(MaterialBomPo record);

    List<MaterialBomPo> selectByExample(MaterialBomPoExample example);

    MaterialBomPo selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") MaterialBomPo record, @Param("example") MaterialBomPoExample example);

    int updateByExample(@Param("record") MaterialBomPo record, @Param("example") MaterialBomPoExample example);

    int updateByPrimaryKeySelective(MaterialBomPo record);

    int updateByPrimaryKey(MaterialBomPo record);

//    @Select("select * from erp_system_management.ERP_material_bom where material_code=#{s}")
//    MaterialBomPo getMaterialByMaterialCode(String s);
}